#pragma once

#include <string>
#include <map>

// A simple and buggy implementation of GNU GetText
class GNUGetText {
public:
	static bool GetSystemLocale(char* buf, int size);

	bool LoadFileWithAutoLocale(const std::string& sFileName);
	bool LoadFile(const std::string& sFileName);
	void Close();

	std::string GetText(const std::string& s) const;
public:
	std::map<std::string, std::string> m_objString;

	std::string m_sCurrentLocale;
};
